package faceb.server.service;

import java.io.File;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import faceb.server.model.News;
import faceb.server.model.NewsPic;

public interface NewsService {
	public int insertNews(News news);
	
	public int insertNewsPic(NewsPic newspic ); 
	
	public String publicNews(Map<String,String> params,List<File> pics,HttpServletRequest req);
	
	public Map<String,Object> getNewsByNewsId(String newsid);
	
	public List<Map<String,Object>> getNewsByUserId(String userid);
	
	public List<Map<String,Object>> getNewsBeforeTime(long time,int count );
	
	public List<Map<String,Object>> getNewsAfterTime(long time,int count );
}
